package chapter4.No4_1_使用reentrantLock类.demo11;

/**
 * Created by Administrator on 2016/11/21.
 */
public class Main_2 {
    public static void main(String[] args) {
        Service service = new Service(false);
        ThreadA[] as = new ThreadA[10];

        for(int i = 0; i < 10; i++) {
            as[i] = new ThreadA(service);
        }

        for(ThreadA a : as) {
            a.start();
        }
    }
}
